package com.cl.gateway;

import com.cl.gateway.config.ApplicationConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 网关启动配置类
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigurationProperties
@RefreshScope //支持Nacos的动态刷新功能。
public class ClGateWayService {

    public static void main(String[] args) {
        SpringApplication.run(ClGateWayService.class, args);
    }
}
